<?php

namespace app\index\controller;

use app\BaseController;

class Index
{
    public function index()
    {
        $year = input('get.y');
        echo (($year % 4 == 0) || ($year % 100 != 0 && $year % 400 == 0)) ? "润年" : "平年";
        /*
        echo $year;
        if ($year % 4 == 0) {
            echo '闰年';
            die();
        }
        if ($year % 100 != 0 && $year % 400 == 0) {
            echo '闰年';
            die();
        }
        echo '平年';
        */
    }
}